package com.javarj.secure_file;

public class SecureServiceUtil {

	public static byte[] decry(byte[] readBytes2, Integer[] num2) {
		return encry(readBytes2, num2);
	}

	public static byte[] encry(byte[] readBytes, Integer[] num) {
		byte[] bys = new byte[readBytes.length];
		for (int i = 0; i < readBytes.length; i++) {
			byte old = readBytes[i];
			byte neww = (byte) num[Byte.toUnsignedInt((byte) old)].intValue();
			bys[i] = neww;
		}
		return bys;
	}
}
